package sorting_strings;

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class testSort {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		List<String> slist = new ArrayList<String>();
		while (sc.hasNext()) {
			slist.add(sc.next());
		}
		// System.out.println(slist);
		// slist.set(3, "new element");
		// System.out.println(slist);

		Sort s = new Sort(slist);
		System.out.println(slist);
		System.out.println(s.sortString(slist));

	}

}
